/// GiftCardCategoryPageRequestDto
class GiftCardCategoryPageRequestDto {
  /// 当前页 默认 1
  final int? pageNum;
  /// 每页记录数 默认 10
  final int? pageSize;
  /// 卡分类名称
  final String? categoryName;
  /// 数据状态：1：正常，0：停用
  final int? status;

  GiftCardCategoryPageRequestDto({
    this.pageNum,
    this.pageSize,
    this.categoryName,
    this.status,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (pageNum != null) data['pageNum'] = pageNum;
    if (pageSize != null) data['pageSize'] = pageSize;
    if (categoryName != null) data['categoryName'] = categoryName;
    if (status != null) data['status'] = status;
    return data;
  }

  factory GiftCardCategoryPageRequestDto.fromJson(Map<String, dynamic> json) {
    return GiftCardCategoryPageRequestDto(
      pageNum: json['pageNum'],
      pageSize: json['pageSize'],
      categoryName: json['categoryName'],
      status: json['status'],
    );
  }
}